#ifndef _KEY_H_
#define _KEY_H_

#include "fm33lc0xx.h"
#include "fm33lc0xx_fl.h"

typedef enum{
	BUTTON0 = 0,
	BUTTON1 = 1,
}BUTTONx_TydeDef;

extern struct Button Button0;

void Key_InitConfig(void);
uint8_t Key_ReadPinLevel(uint8_t button_idx);
void Button0_PRESS_DOWN_Handler(void * buttonx);
void Button0_PRESS_UP_Handler(void * button0);
void Button0_PRESS_PRESS_REPEAT_Handler(void * button0);
void Button0_SINGLE_CLICK_Handler(void * button0);
void Button0_DOUBLE_CLICK_Handler(void * button0);
void Button0_LONG_PRESS_START_Handler(void * buttonx);
#endif //!_KEY_H_
